#include "allincludes.h"


//Do not laugh... This is all that this program can do...
int main(int argc, char *argv[])
{
//No need to do this... Anyway, we must edit the file "allincludes.h" first any way.
        //char *tablepath, thepath[100], file[300];
        //tablepath = getenv("CONSTANTSPATH");
        //if(tablepath == NULL)
        //{
        //    strcpy(thepath,".");
        //}
        //else strcpy(thepath, tablepath);

        //sprintf(file,"%s/setting.ini",thepath);

	//LidarINI setting=LoadINI(file);
	string inifile=WHERE_IS_INI+"setting.ini";
	LidarINI setting=LoadINI(inifile.c_str());

	LidarProArg option=AnalysisArg(argc, argv);
	TaskManager task(option, setting);
	task.Loop();
	task.CloseAllFiles();
	
	return SUCCEED;
}

